package com.docker.jy.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.docker.chy.domain.DoctorPatient;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docker.common.annotation.Excel;
import com.docker.common.core.domain.BaseEntity;

/**
 * 积分管理对象 doctor_vip
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public class PointsManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 卡号 */
    @Excel(name = "卡号")
    private Long id;

    /** 患者编号 */
    private String patientId;

    /** 会员等级（字典） */
    @Excel(name = "会员等级", readConverterExp = "字=典")
    private Long vipGrade;

    /** 累计消费（元） */
    private BigDecimal consumption;

    /** 储值余额（元） */
    private BigDecimal balance;

    /** 累计储值（元） */
    private BigDecimal deposit;

    /** 积分 */
    @Excel(name = "积分")
    private Long points;

    /** 到期时间 */
    private Date deadlineTime;

    /** 逻辑删除 */
    private Long del;

    //根据patientId查询患者信息
    private DoctorPatient doctorPatient;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPatientId(String patientId) 
    {
        this.patientId = patientId;
    }

    public String getPatientId() 
    {
        return patientId;
    }

    public void setVipGrade(Long vipGrade) 
    {
        this.vipGrade = vipGrade;
    }

    public Long getVipGrade() 
    {
        return vipGrade;
    }

    public void setConsumption(BigDecimal consumption) 
    {
        this.consumption = consumption;
    }

    public BigDecimal getConsumption() 
    {
        return consumption;
    }

    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    public void setDeposit(BigDecimal deposit) 
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit() 
    {
        return deposit;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public void setDeadlineTime(Date deadlineTime) 
    {
        this.deadlineTime = deadlineTime;
    }

    public Date getDeadlineTime() 
    {
        return deadlineTime;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public DoctorPatient getDoctorPatient() {
        return doctorPatient;
    }

    public void setDoctorPatient(DoctorPatient doctorPatient) {
        this.doctorPatient = doctorPatient;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patientId", getPatientId())
            .append("vipGrade", getVipGrade())
            .append("consumption", getConsumption())
            .append("balance", getBalance())
            .append("deposit", getDeposit())
            .append("points", getPoints())
            .append("createTime", getCreateTime())
            .append("deadlineTime", getDeadlineTime())
            .append("del", getDel())
            .toString();
    }
}
